package com.kob.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kob.backend.pojo.favorite;
import com.kob.backend.pojo.product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FavoriteMapper extends BaseMapper<favorite> {
    @Select("select product.* from product,favorite where productid=id and userid=#{userid}")
    List<product> productlist(Integer userid);
}
